$('.radio_box').on('click', '.radio_item', function () {
    $(this).find('.radio_icon').addClass('radio_have').parent().siblings('p').find('.radio_icon').removeClass('radio_have')
});
$('#fileSelector,#album').on('change', function (event) {// 鏇存敼鐢ㄦ埛澶村儚
    if (event.target.files[0] != undefined) {
        if (event.target.files[0]['type'] == 'image/jpg' || event.target.files[0]['type'] == 'image/png' || event.target.files[0]['type'] == 'image/jpeg' || event.target.files[0]['type'] == 'image/gif' || event.target.files[0]['type'] == 'image/webp') {
            if (event.target.files[0]['tysizepe'] > 1024 * 1024 * 1) {
                // newsAlert('图片尺寸不能大于1MB', 2)
            } else {
                // handleFileInUploading(event.target.files[0])
                var reader = new FileReader()
                reader.onload = function (e) {
                    let imgHtml=`<img src="${e.target.result}" alt="">`
                    // $('.user_change_headimg').attr('src', e.target.result)
                    
                    $('.upload_img_list').append(imgHtml)
                }
                reader.readAsDataURL(event.target.files[0])
            }

        } else {
            // newsAlert('上传头像格式不正确', 2)
        }
    }
})
$('.select_box').on('click', '.select_context', function () {
   if($(this).find('.iconfont').hasClass('down')){
        $(this).find('.iconfont').css('transform','rotate(0deg)').removeClass('down')
        $(this).siblings('.select_list').hide()
   }else{
        $(this).find('.iconfont').css('transform','rotate(180deg)').addClass('down')
        $(this).siblings('.select_list').show()
   }
});
$('.select_list').on('click', 'li', function () {
    $('.select_context span').text($(this).text())
    $('.select_box .iconfont').css('transform','rotate(0deg)').removeClass('down')
    $('.select_list').hide()
 });